package zhoufu.sz.sanxiao_check.protocol;

import java.util.Map;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.Path;
import rx.Observable;

/**
 * Created by h on 2016/6/20.
 */

public interface ApiService {

    @FormUrlEncoded
    @POST("{method}")
    Call<String> post(@Path("method") String method,
            @FieldMap Map<String, Object> fieldMap);


    @FormUrlEncoded
    @POST("{method}")
    Observable<String> post2(@Path("method") String method,
            @FieldMap Map<String, Object> fieldMap);

    @FormUrlEncoded
    @POST("{method}")
    Observable<String> post3(@Path("method") String method,
            @Field("Json") String string);


    @FormUrlEncoded
    @POST("/WebService/SanXiao.asmx/{Path}")
    Observable<String> PostJson2RequestXml(
            @Path("Path") String path, @Field("Json") String string);

}
